package com.ruoyi.project.system.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigDecimal;

/**
 * 产品对象 sys_product
 *
 */
@Data
@Accessors(chain = true)
public class SysProduct extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    private Integer productId;

    /**
     * 产品类型
     */
    private String productType;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品介绍
     */
    private String productIntroduce;

    /**
     * 产品场景
     */
    private String scene;

    /**
     * 是否首页产品
     */
    private String homePage;

    /**
     * 支付售价
     */
    private BigDecimal pricing;

    /**
     * 虚拟扣费
     */
    private BigDecimal fee;

    /**
     * 产品状态（0正常；1停用）
     */
    private String status;

    /**
     * 删除标志（0代表存在；2代表删除）
     */
    private String delFlag;

    public SysProduct() {
    }

    public SysProduct(String delFlag) {
        this.delFlag = delFlag;
    }

    public SysProduct(Integer productId, String productType, String productName, String productIntroduce, String scene, BigDecimal pricing, BigDecimal fee, String status, String delFlag) {
        this.productId = productId;
        this.productType = productType;
        this.productName = productName;
        this.productIntroduce = productIntroduce;
        this.scene = scene;
        this.pricing = pricing;
        this.fee = fee;

        this.status = status;
        this.delFlag = delFlag;
    }

    public SysProduct(SysProduct sysProduct,SysUserProductPrice userProductPrice) {
        this.productId = sysProduct.getProductId();
        this.productName = sysProduct.getProductName();
        this.productIntroduce = sysProduct.getProductIntroduce();
        this.scene = sysProduct.getScene();
        this.pricing = userProductPrice.getPricing();
        this.fee = userProductPrice.getFee();
    }

}
